import { defineStore } from 'pinia';

export const useEventStore = defineStore('event', {
    state: () => ({
        message: ''
    }),
    actions: {
        triggerEvent(data) {
            this.message = data.message;
            // 可以在这里触发其他逻辑
        }
    }
});